package com.weilai.service;


import com.weilai.domain.Drafts;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DraftsService {
    public Drafts selectByPostId(int postId);
    public void addDrafts(Drafts drafts);
    public void updateDrafts(Drafts drafts);
    public List<Drafts> selectByUserId(int userID);

    // 按 userid 删除草稿
    public void deleteUserById(int userId);
}
